<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="t" %>

<t:body title="Лекция">
	<div class="title">Лекция</div>
	<div class="c_block">
	
		<div class="row">
			<div class="simple_l">Название</div>
			<div class="simple_r"><c:out value="${lection.name}"/></div>
		</div>		
		
		<!-- <div class="row">
			<div class="simple_l">Презентации</div>
			<div class="simple_r">
				<c:forEach var="file" items="${lection.presentationFiles}">
		       		<c:url var="url" value="/file/${file.id}"/>
		       		<a href="${url}"><c:out value="${file.fileName}"/></a><br/>
		       	</c:forEach>
			</div>
		</div>	 -->
		
		
		
		<div class="row">
		<div class="simple_l">Презентации</div>
		<div class="simple_d">
		
			<c:forEach var="file" items="${lection.presentationFiles}">
				<div class="logical_conteiner file_conteiner">
		       		<c:url var="url" value="/file/${file.id}"/>
		       		<a href="${url}"><c:out value="${file.fileName}"/></a>
					<span class="del_file" onclick="del_file_input(this);">X</span>
	       		</div>
	       	</c:forEach>
	       	
			<div class="logical_conteiner file_input_conteiner">
				<input type="file" name="presentation0" class="file_input" onchange="add_file_input(this, '#$presentation_pattern');" size="15">
				<span class="del_file" onclick="del_file_input(this);">X</span>
			</div> 
			<div class="hiden" id="presentation_pattern">
				<div class="logical_conteiner file_input_conteiner">
					<input type="file" name="presentation0" class="file_input" onchange="add_file_input(this, '#$presentation_pattern');" size="15">
					<span class="del_file" onclick="del_file_input(this);">X</span>
				</div>
			</div>
		</div>
	</div>
		
		
		
		
		
		<div class="row">
			<div class="simple_l">Вопросы</div>
			<div class="simple_r">
				<c:forEach var="file" items="${lection.questionFiles}">
		       		<c:url var="url" value="/file/${file.id}"/>
		       		<a href="${url}"><c:out value="${file.fileName}"/></a><br/>
		       	</c:forEach>
			</div>
		</div>	
		
		<div class="row">
			<div class="simple_l">Другое</div>
			<div class="simple_r">
				<c:forEach var="file" items="${lection.otherFiles}">
		       		<c:url var="url" value="/file/${file.id}"/>
		       		<a href="${url}"><c:out value="${file.fileName}"/></a><br/>
		       	</c:forEach>
			</div>
		</div>	
		

	</div>
</t:body>



